import { Component } from '@angular/core';
import { Platform } from 'ionic-angular';
import { StatusBar, Splashscreen } from 'ionic-native';
import { AppService } from './app.service';

import { LoginPage } from '../pages/login/login';


@Component({
    templateUrl: 'app.html'
})
export class LaunchPage {
    rootPage = LoginPage;

    constructor(platform: Platform, private appService: AppService) {
        platform.ready().then(() => {
            // Okay, so the platform is ready and our plugins are available.
            // Here you can do any higher level native things you might need.
            appService.setFont();
            StatusBar.styleDefault();
            Splashscreen.hide();
        });
    }
}
